<?php

function views_xml_views_plugins() {
  return array(
    'module' => 'views_xml',
    'display' => array(
      'xml' => array(
        'title' => t('Xml'),
        'help' => t('Display the view as a xml.'),
        'handler' => 'views_plugin_display_xml',
        'parent' => 'page', // so it knows to load the page plugin .inc file
        'uses hook menu' => TRUE,
        'use ajax' => FALSE,
        'use pager' => FALSE,
        'accept attachments' => FALSE,
        'admin' => t('Feed'),
        'help topic' => 'display-xml',
        'path' => drupal_get_path('module', 'views_xml') .'/plugins',
      ),
    ),
    'style' => array(
      'xml' => array(
        'title' => t('Xml format'),
        'help' => t('Generates an Xml from a view.'),
        'handler' => 'views_plugin_style_xml',
        'theme' => 'views_view_xml',
        'uses row plugin' => TRUE,
        'uses options' => TRUE,
        'uses fields' => TRUE,
        'type' => 'xml',
        'help topic' => 'style-xml',
        'path' => drupal_get_path('module', 'views_xml') .'/plugins',
      ),
    ),
    'row' => array(
      'tag' => array(
        'title' => t('Xml tag row'),
        'help' => t('Displays the fields in a xml tag.'),
        'type' => 'xml',
        'handler' => 'views_plugin_row_tag',
        'theme' => 'views_view_fields_tag',
        'uses fields' => TRUE,
        'uses options' => TRUE,
        'type' => 'xml',
        'help topic' => 'style-row-fields-xml',        
        'path' => drupal_get_path('module', 'views_xml') .'/plugins',
      ),
    ),
  );
}
